// house_pkg/pages/building/index.ts
Page({

  data: {
    // 小区
      point:'',
    // 楼栋
      building:0
  },

  onLoad({point}) {
    this.setData({point,building:this.getRandom(1, 20)})
  },
  getRandom(min, max) {
    return Math.floor(Math.random() * (max - min + 1)) + min
  }
})